package dao;

import model.Shoppingcart;

import java.util.List;

/**
 * The interface Shoppingcart dao.
 */
public interface ShoppingcartDao {
    /**
     * Find list.
     *
     * @param uid       the uid
     * @param pageIndex the page index
     * @param pageSize  the page size
     * @return the list
     */
    List<Long> find(long uid,int pageIndex, int pageSize);
    List<Long> findSidByUid(long uid);

    /**
     * Insert int.
     *
     * @param shoppingcart the shoppingcart
     * @return the int
     */
    int insert(Shoppingcart shoppingcart);


    /**
     * Delete int.
     *
     * @param shoppingcart the shoppingcart
     * @return the int
     */
    int delete(Shoppingcart shoppingcart);

    /**
     * Delete int.
     *
     * @param scid the scid
     * @return the int
     */
    int delete(long scid);

    int countById(long uid);

}
